﻿#ifndef USERCONTROLLER_H
#define USERCONTROLLER_H

#include <httprequesthandler.h>
using namespace stefanfrings;

class UserController : public HttpRequestHandler
{
public:
    UserController(QObject *parent = nullptr);
    ~UserController();
    void service(HttpRequest &request, HttpResponse &response) override;
private:
    void getUserInfo(HttpRequest &request, HttpResponse &response);
    void getList(HttpRequest &request, HttpResponse &response);
    void getPageList(HttpRequest &request, HttpResponse &response);
    void saveOne(HttpRequest &request, HttpResponse &response);
    void deleteOne(HttpRequest &request, HttpResponse &response);
};

#endif // USERCONTROLLER_H
